<?php
namespace Middleware;

class Env
{

    //如果有post过来的表单 认证
    function request($request){
        return $request;
    }
    //在表单中生成csrftoken
    function response($html){
        $html = preg_replace("/%root%/",'http://10.0.1.10:8000',$html);
        return $html;
    }
}